package com.juyu.miliao.api.domain;

import java.time.LocalDateTime;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.juyu.miliao.api.validator.OpinionCheck;
/**
 * 意见建议
 */
public class Opinion {
	/**id*/
	private int opinionId;
	/**用户id*/
	@Min(value = 1, groups = {OpinionCheck.class})
	private int userId;
	/**描述*/
	@NotBlank(groups = {OpinionCheck.class})
	private String des;
	/** 截图地址(多个以，分割-目前最大上传4张)*/
	private String picUrl;
	/** 联系方式*/
	private String contact;
	/**创建时间*/
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private LocalDateTime createDate;
	
	
	public String getPicUrl() {
		return picUrl;
	}
	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}
	public String getContact() {
		return contact;
	}
	public void setContact(String contact) {
		this.contact = contact;
	}
	public int getOpinionId() {
		return opinionId;
	}
	public void setOpinionId(int opinionId) {
		this.opinionId = opinionId;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getDes() {
		return des;
	}
	public void setDes(String des) {
		this.des = des;
	}
	public LocalDateTime getCreateDate() {
		return createDate;
	}
	public void setCreateDate(LocalDateTime createDate) {
		this.createDate = createDate;
	}

	
}
